({
    myAction : function(component, event, helper) {
      console.log('111111');
        let title = component.get("v.title");
        let content = component.get("v.content");
        var action = component.get("c.sentPlatformEventService");
          
            action.setParams({
              'title':title,
              'content':content
            });
          
            action.setCallback(this, function (response) {
          
              var state = response.getState();
          
              console.log(state);
          
              if (component.isValid() && state === "SUCCESS") {
          
                var ResponseBody = response.getReturnValue();
                console.log('==========');
                console.log(ResponseBody);
          
                var Entity = ResponseBody.Entity;
          
                var Msg = ResponseBody.Msg;
          
                var Status = ResponseBody.Status;

                if (Status == 'SUCCESS') {
                  var toastEvent = $A.get("e.force:showToast");
                  toastEvent.setParams({
                    "title": '提示',
                    "message": '发送成功',
                    "type": 'INFO',
                    "mode":"sticky"
                  });
                  toastEvent.fire();
                }
                  
              }
            })
          
            $A.enqueueAction(action);
    
    }
})
